//
//  DecorationView.swift
//  EastNetWorkProject
//
//  Created by 伊伊 on 2023/12/20.
//

import UIKit

class DecorationView: UICollectionReusableView {
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.backgroundColor = UIColor.tertiarySystemGroupedBackground
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    override func apply(_ layoutAttributes: UICollectionViewLayoutAttributes) {
        let attributes = layoutAttributes as! DecorationViewLayoutAttributes
        self.backgroundColor = attributes.backgroundColor
        
    }
}
